From 602cbe52cd7e59ec5b9516f8912297f516bf55b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timo=20R=C3=B6hling?= Date: Wed, 27 Jul 2022 22:05:48 +0200 Subject: [PATCH] Workaround for armel clang compiler bug Thanks: Adrian Bunk --- ...karound-for-armel-clang-compiler-bug.patch | 21 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 22 insertions(+) create mode 100644 debian/patches/0017-Workaround-for-armel-clang-compiler-bug.patch diff --git a/debian/patches/0017-Workaround-for-armel-clang-compiler-bug.patch b/debian/patches/0017-Workaround-for-armel-clang-compiler-bug.patch new file mode 100644 index 0000000..4601fb7 --- /dev/null +++ b/debian/patches/0017-Workaround-for-armel-clang-compiler-bug.patch @@ -0,0 +1,21 @@ +From: Adrian Bunk +Date: Mon, 18 Jul 2022 02:27:16 +0300 +Subject: Workaround for armel clang compiler bug + +--- + libs/utils/include/utils/compiler.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libs/utils/include/utils/compiler.h b/libs/utils/include/utils/compiler.h +index c0bdebf..ea63dbd 100644 +--- a/libs/utils/include/utils/compiler.h ++++ b/libs/utils/include/utils/compiler.h +@@ -176,7 +176,7 @@ + # define UTILS_HAS_RTTI 0 + #endif + +-#ifdef __ARM_ACLE ++#if defined(__ARM_ACLE) && (__ARM_ARCH >= 7) + # include + # define UTILS_WAIT_FOR_INTERRUPT() __wfi() + # define UTILS_WAIT_FOR_EVENT() __wfe() diff --git a/debian/patches/series b/debian/patches/series index 623bfd4..9508bb6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -14,3 +14,4 @@ 0014-Avoid-mips-as-identifier-because-it-fails-on-mips-ar.patch 0015-Ensure-proper-alignment-of-resgen-_OFFSET-and-_SIZE-.patch 0016-Fix-FTBFS-with-GCC-12.patch +0017-Workaround-for-armel-clang-compiler-bug.patch -- 2.30.2